// MESSAGE ASCTEC_IMU PACKING

#define MAVLINK_MSG_ID_ASCTEC_IMU 1

typedef struct __mavlink_asctec_imu_t
{
 uint32_t msec; ///< Timestamp (microseconds since UNIX epoch or microseconds since system boot)
 int32_t acc_x; ///< acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 int32_t acc_y; ///< acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 int32_t acc_z; ///< acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 int32_t angle_roll; ///<  angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 int32_t angle_pitch; ///< angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 int32_t angle_yaw; ///< angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 int32_t angvel_roll; ///< angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 int32_t angvel_pitch; ///< angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 int32_t angvel_yaw; ///< angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 int32_t Hx; ///< magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 int32_t Hy; ///< magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 int32_t Hz; ///< magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 int32_t fusion_height; ///< height in mm (after data fusion)
} mavlink_asctec_imu_t;

#define MAVLINK_MSG_ID_ASCTEC_IMU_LEN 56
#define MAVLINK_MSG_ID_1_LEN 56



#define MAVLINK_MESSAGE_INFO_ASCTEC_IMU { \
	"ASCTEC_IMU", \
	14, \
	{  { "msec", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_asctec_imu_t, msec) }, \
         { "acc_x", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_asctec_imu_t, acc_x) }, \
         { "acc_y", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_asctec_imu_t, acc_y) }, \
         { "acc_z", NULL, MAVLINK_TYPE_INT32_T, 0, 12, offsetof(mavlink_asctec_imu_t, acc_z) }, \
         { "angle_roll", NULL, MAVLINK_TYPE_INT32_T, 0, 16, offsetof(mavlink_asctec_imu_t, angle_roll) }, \
         { "angle_pitch", NULL, MAVLINK_TYPE_INT32_T, 0, 20, offsetof(mavlink_asctec_imu_t, angle_pitch) }, \
         { "angle_yaw", NULL, MAVLINK_TYPE_INT32_T, 0, 24, offsetof(mavlink_asctec_imu_t, angle_yaw) }, \
         { "angvel_roll", NULL, MAVLINK_TYPE_INT32_T, 0, 28, offsetof(mavlink_asctec_imu_t, angvel_roll) }, \
         { "angvel_pitch", NULL, MAVLINK_TYPE_INT32_T, 0, 32, offsetof(mavlink_asctec_imu_t, angvel_pitch) }, \
         { "angvel_yaw", NULL, MAVLINK_TYPE_INT32_T, 0, 36, offsetof(mavlink_asctec_imu_t, angvel_yaw) }, \
         { "Hx", NULL, MAVLINK_TYPE_INT32_T, 0, 40, offsetof(mavlink_asctec_imu_t, Hx) }, \
         { "Hy", NULL, MAVLINK_TYPE_INT32_T, 0, 44, offsetof(mavlink_asctec_imu_t, Hy) }, \
         { "Hz", NULL, MAVLINK_TYPE_INT32_T, 0, 48, offsetof(mavlink_asctec_imu_t, Hz) }, \
         { "fusion_height", NULL, MAVLINK_TYPE_INT32_T, 0, 52, offsetof(mavlink_asctec_imu_t, fusion_height) }, \
         } \
}


/**
 * @brief Pack a asctec_imu message
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param msg The MAVLink message to compress the data into
 *
 * @param msec Timestamp (microseconds since UNIX epoch or microseconds since system boot)
 * @param acc_x acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 * @param acc_y acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 * @param acc_z acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 * @param angle_roll  angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 * @param angle_pitch angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 * @param angle_yaw angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 * @param angvel_roll angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 * @param angvel_pitch angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 * @param angvel_yaw angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 * @param Hx magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 * @param Hy magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 * @param Hz magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 * @param fusion_height height in mm (after data fusion)
 * @return length of the message in bytes (excluding serial stream start sign)
 */
static inline uint16_t mavlink_msg_asctec_imu_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
						       uint32_t msec, int32_t acc_x, int32_t acc_y, int32_t acc_z, int32_t angle_roll, int32_t angle_pitch, int32_t angle_yaw, int32_t angvel_roll, int32_t angvel_pitch, int32_t angvel_yaw, int32_t Hx, int32_t Hy, int32_t Hz, int32_t fusion_height)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char buf[56];
	_mav_put_uint32_t(buf, 0, msec);
	_mav_put_int32_t(buf, 4, acc_x);
	_mav_put_int32_t(buf, 8, acc_y);
	_mav_put_int32_t(buf, 12, acc_z);
	_mav_put_int32_t(buf, 16, angle_roll);
	_mav_put_int32_t(buf, 20, angle_pitch);
	_mav_put_int32_t(buf, 24, angle_yaw);
	_mav_put_int32_t(buf, 28, angvel_roll);
	_mav_put_int32_t(buf, 32, angvel_pitch);
	_mav_put_int32_t(buf, 36, angvel_yaw);
	_mav_put_int32_t(buf, 40, Hx);
	_mav_put_int32_t(buf, 44, Hy);
	_mav_put_int32_t(buf, 48, Hz);
	_mav_put_int32_t(buf, 52, fusion_height);

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, 56);
#else
	mavlink_asctec_imu_t packet;
	packet.msec = msec;
	packet.acc_x = acc_x;
	packet.acc_y = acc_y;
	packet.acc_z = acc_z;
	packet.angle_roll = angle_roll;
	packet.angle_pitch = angle_pitch;
	packet.angle_yaw = angle_yaw;
	packet.angvel_roll = angvel_roll;
	packet.angvel_pitch = angvel_pitch;
	packet.angvel_yaw = angvel_yaw;
	packet.Hx = Hx;
	packet.Hy = Hy;
	packet.Hz = Hz;
	packet.fusion_height = fusion_height;

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, 56);
#endif

	msg->msgid = MAVLINK_MSG_ID_ASCTEC_IMU;
	return mavlink_finalize_message(msg, system_id, component_id, 56, 103);
}

/**
 * @brief Pack a asctec_imu message on a channel
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param chan The MAVLink channel this message was sent over
 * @param msg The MAVLink message to compress the data into
 * @param msec Timestamp (microseconds since UNIX epoch or microseconds since system boot)
 * @param acc_x acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 * @param acc_y acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 * @param acc_z acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 * @param angle_roll  angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 * @param angle_pitch angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 * @param angle_yaw angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 * @param angvel_roll angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 * @param angvel_pitch angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 * @param angvel_yaw angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 * @param Hx magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 * @param Hy magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 * @param Hz magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 * @param fusion_height height in mm (after data fusion)
 * @return length of the message in bytes (excluding serial stream start sign)
 */
static inline uint16_t mavlink_msg_asctec_imu_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
							   mavlink_message_t* msg,
						           uint32_t msec,int32_t acc_x,int32_t acc_y,int32_t acc_z,int32_t angle_roll,int32_t angle_pitch,int32_t angle_yaw,int32_t angvel_roll,int32_t angvel_pitch,int32_t angvel_yaw,int32_t Hx,int32_t Hy,int32_t Hz,int32_t fusion_height)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char buf[56];
	_mav_put_uint32_t(buf, 0, msec);
	_mav_put_int32_t(buf, 4, acc_x);
	_mav_put_int32_t(buf, 8, acc_y);
	_mav_put_int32_t(buf, 12, acc_z);
	_mav_put_int32_t(buf, 16, angle_roll);
	_mav_put_int32_t(buf, 20, angle_pitch);
	_mav_put_int32_t(buf, 24, angle_yaw);
	_mav_put_int32_t(buf, 28, angvel_roll);
	_mav_put_int32_t(buf, 32, angvel_pitch);
	_mav_put_int32_t(buf, 36, angvel_yaw);
	_mav_put_int32_t(buf, 40, Hx);
	_mav_put_int32_t(buf, 44, Hy);
	_mav_put_int32_t(buf, 48, Hz);
	_mav_put_int32_t(buf, 52, fusion_height);

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, 56);
#else
	mavlink_asctec_imu_t packet;
	packet.msec = msec;
	packet.acc_x = acc_x;
	packet.acc_y = acc_y;
	packet.acc_z = acc_z;
	packet.angle_roll = angle_roll;
	packet.angle_pitch = angle_pitch;
	packet.angle_yaw = angle_yaw;
	packet.angvel_roll = angvel_roll;
	packet.angvel_pitch = angvel_pitch;
	packet.angvel_yaw = angvel_yaw;
	packet.Hx = Hx;
	packet.Hy = Hy;
	packet.Hz = Hz;
	packet.fusion_height = fusion_height;

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, 56);
#endif

	msg->msgid = MAVLINK_MSG_ID_ASCTEC_IMU;
	return mavlink_finalize_message_chan(msg, system_id, component_id, chan, 56, 103);
}

/**
 * @brief Encode a asctec_imu struct into a message
 *
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param msg The MAVLink message to compress the data into
 * @param asctec_imu C-struct to read the message contents from
 */
static inline uint16_t mavlink_msg_asctec_imu_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_asctec_imu_t* asctec_imu)
{
	return mavlink_msg_asctec_imu_pack(system_id, component_id, msg, asctec_imu->msec, asctec_imu->acc_x, asctec_imu->acc_y, asctec_imu->acc_z, asctec_imu->angle_roll, asctec_imu->angle_pitch, asctec_imu->angle_yaw, asctec_imu->angvel_roll, asctec_imu->angvel_pitch, asctec_imu->angvel_yaw, asctec_imu->Hx, asctec_imu->Hy, asctec_imu->Hz, asctec_imu->fusion_height);
}

/**
 * @brief Send a asctec_imu message
 * @param chan MAVLink channel to send the message
 *
 * @param msec Timestamp (microseconds since UNIX epoch or microseconds since system boot)
 * @param acc_x acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 * @param acc_y acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 * @param acc_z acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 * @param angle_roll  angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 * @param angle_pitch angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 * @param angle_yaw angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 * @param angvel_roll angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 * @param angvel_pitch angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 * @param angvel_yaw angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 * @param Hx magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 * @param Hy magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 * @param Hz magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 * @param fusion_height height in mm (after data fusion)
 */
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS

static inline void mavlink_msg_asctec_imu_send(mavlink_channel_t chan, uint32_t msec, int32_t acc_x, int32_t acc_y, int32_t acc_z, int32_t angle_roll, int32_t angle_pitch, int32_t angle_yaw, int32_t angvel_roll, int32_t angvel_pitch, int32_t angvel_yaw, int32_t Hx, int32_t Hy, int32_t Hz, int32_t fusion_height)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char buf[56];
	_mav_put_uint32_t(buf, 0, msec);
	_mav_put_int32_t(buf, 4, acc_x);
	_mav_put_int32_t(buf, 8, acc_y);
	_mav_put_int32_t(buf, 12, acc_z);
	_mav_put_int32_t(buf, 16, angle_roll);
	_mav_put_int32_t(buf, 20, angle_pitch);
	_mav_put_int32_t(buf, 24, angle_yaw);
	_mav_put_int32_t(buf, 28, angvel_roll);
	_mav_put_int32_t(buf, 32, angvel_pitch);
	_mav_put_int32_t(buf, 36, angvel_yaw);
	_mav_put_int32_t(buf, 40, Hx);
	_mav_put_int32_t(buf, 44, Hy);
	_mav_put_int32_t(buf, 48, Hz);
	_mav_put_int32_t(buf, 52, fusion_height);

	_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASCTEC_IMU, buf, 56, 103);
#else
	mavlink_asctec_imu_t packet;
	packet.msec = msec;
	packet.acc_x = acc_x;
	packet.acc_y = acc_y;
	packet.acc_z = acc_z;
	packet.angle_roll = angle_roll;
	packet.angle_pitch = angle_pitch;
	packet.angle_yaw = angle_yaw;
	packet.angvel_roll = angvel_roll;
	packet.angvel_pitch = angvel_pitch;
	packet.angvel_yaw = angvel_yaw;
	packet.Hx = Hx;
	packet.Hy = Hy;
	packet.Hz = Hz;
	packet.fusion_height = fusion_height;

	_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASCTEC_IMU, (const char *)&packet, 56, 103);
#endif
}

#endif

// MESSAGE ASCTEC_IMU UNPACKING


/**
 * @brief Get field msec from asctec_imu message
 *
 * @return Timestamp (microseconds since UNIX epoch or microseconds since system boot)
 */
static inline uint32_t mavlink_msg_asctec_imu_get_msec(const mavlink_message_t* msg)
{
	return _MAV_RETURN_uint32_t(msg,  0);
}

/**
 * @brief Get field acc_x from asctec_imu message
 *
 * @return acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 */
static inline int32_t mavlink_msg_asctec_imu_get_acc_x(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  4);
}

/**
 * @brief Get field acc_y from asctec_imu message
 *
 * @return acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 */
static inline int32_t mavlink_msg_asctec_imu_get_acc_y(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  8);
}

/**
 * @brief Get field acc_z from asctec_imu message
 *
 * @return acc-sensor outputs, calibrated: -10000..+10000 = -1g..+1g, body frame coordinate system
 */
static inline int32_t mavlink_msg_asctec_imu_get_acc_z(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  12);
}

/**
 * @brief Get field angle_roll from asctec_imu message
 *
 * @return  angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 */
static inline int32_t mavlink_msg_asctec_imu_get_angle_roll(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  16);
}

/**
 * @brief Get field angle_pitch from asctec_imu message
 *
 * @return angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 */
static inline int32_t mavlink_msg_asctec_imu_get_angle_pitch(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  20);
}

/**
 * @brief Get field angle_yaw from asctec_imu message
 *
 * @return angles derived by integration of gyro_outputs, drift compensated by data fusion; -90000..+90000 pitch(nick) and roll, 0..360000 yaw; 1000 = 1 degree
 */
static inline int32_t mavlink_msg_asctec_imu_get_angle_yaw(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  24);
}

/**
 * @brief Get field angvel_roll from asctec_imu message
 *
 * @return angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 */
static inline int32_t mavlink_msg_asctec_imu_get_angvel_roll(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  28);
}

/**
 * @brief Get field angvel_pitch from asctec_imu message
 *
 * @return angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 */
static inline int32_t mavlink_msg_asctec_imu_get_angvel_pitch(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  32);
}

/**
 * @brief Get field angvel_yaw from asctec_imu message
 *
 * @return angular velocities, bias free, in 0.0154 deg/s (=> 64.8 = 1 deg/s)
 */
static inline int32_t mavlink_msg_asctec_imu_get_angvel_yaw(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  36);
}

/**
 * @brief Get field Hx from asctec_imu message
 *
 * @return magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 */
static inline int32_t mavlink_msg_asctec_imu_get_Hx(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  40);
}

/**
 * @brief Get field Hy from asctec_imu message
 *
 * @return magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 */
static inline int32_t mavlink_msg_asctec_imu_get_Hy(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  44);
}

/**
 * @brief Get field Hz from asctec_imu message
 *
 * @return magnetic field sensors output, offset free and scaled to +-2500 = +- earth field strength;
 */
static inline int32_t mavlink_msg_asctec_imu_get_Hz(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  48);
}

/**
 * @brief Get field fusion_height from asctec_imu message
 *
 * @return height in mm (after data fusion)
 */
static inline int32_t mavlink_msg_asctec_imu_get_fusion_height(const mavlink_message_t* msg)
{
	return _MAV_RETURN_int32_t(msg,  52);
}

/**
 * @brief Decode a asctec_imu message into a struct
 *
 * @param msg The message to decode
 * @param asctec_imu C-struct to decode the message contents into
 */
static inline void mavlink_msg_asctec_imu_decode(const mavlink_message_t* msg, mavlink_asctec_imu_t* asctec_imu)
{
#if MAVLINK_NEED_BYTE_SWAP
	asctec_imu->msec = mavlink_msg_asctec_imu_get_msec(msg);
	asctec_imu->acc_x = mavlink_msg_asctec_imu_get_acc_x(msg);
	asctec_imu->acc_y = mavlink_msg_asctec_imu_get_acc_y(msg);
	asctec_imu->acc_z = mavlink_msg_asctec_imu_get_acc_z(msg);
	asctec_imu->angle_roll = mavlink_msg_asctec_imu_get_angle_roll(msg);
	asctec_imu->angle_pitch = mavlink_msg_asctec_imu_get_angle_pitch(msg);
	asctec_imu->angle_yaw = mavlink_msg_asctec_imu_get_angle_yaw(msg);
	asctec_imu->angvel_roll = mavlink_msg_asctec_imu_get_angvel_roll(msg);
	asctec_imu->angvel_pitch = mavlink_msg_asctec_imu_get_angvel_pitch(msg);
	asctec_imu->angvel_yaw = mavlink_msg_asctec_imu_get_angvel_yaw(msg);
	asctec_imu->Hx = mavlink_msg_asctec_imu_get_Hx(msg);
	asctec_imu->Hy = mavlink_msg_asctec_imu_get_Hy(msg);
	asctec_imu->Hz = mavlink_msg_asctec_imu_get_Hz(msg);
	asctec_imu->fusion_height = mavlink_msg_asctec_imu_get_fusion_height(msg);
#else
	memcpy(asctec_imu, _MAV_PAYLOAD(msg), 56);
#endif
}
